Conversation
PR SummaryThis pull request enhances the Jupyter notebook
These changes aim to provide users with a method to enhance the context of test results, making them more informative and tailored to specific needs. Test Suggestions
|
PR SummaryThis pull request introduces two main changes:
These changes enhance the functionality of the GitHub workflow and improve the documentation and usability of the notebook by providing more context and customization options for test descriptions. Test Suggestions
|
|
Pull requests must include a description in the release notes section. |
1 similar comment
|
Pull requests must include a description in the release notes section. |
validbeck
left a comment
There was a problem hiding this comment.
Sorry for taking so long, some suggestions and a request: Can we include a small sentence describing why modifying the docstring is different from the other methods? When would you use this over the others, for example?
End sentences with colon Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>
validbeck
left a comment
There was a problem hiding this comment.
Thanks Juan, that makes sense to me! I just touched up the writing a bit but it's good to go to me.
Just a quick question for my understanding, when we say:
Use this method when you want instructions to remain an intrinsic part of the test's definition, eliminating the need to repeatedly set environment variables in different execution contexts.
This means it persists across the user's local environment for when they run this particular test (past the Jupyter Notebook session) and not that it's globally set for all users in their organization, correct?
Yes, exactly, that’s correct. When we embed the instructions directly in the test’s docstring, they become part of the test source code. This ensures they persist for that specific test across different environments and sessions for the user running it, without needing to rely on external environment variables.
Added a a section at the end of the notebook to summarise the two methods and highlight best practices with the idea of making things a bit more clear. Let me know if it is clear lol |
Nice! The new sections sum up the method nicely, thank you so much. |
…example-to-test-result-description-notebook
PR SummaryThis pull request introduces several enhancements and modifications across different files in the project:
These changes aim to improve the functionality and clarity of the documentation and workflows within the project. Test Suggestions
|
Internal Notes for Reviewers
It’s important to note that the docstring serves as a signal to guide the LLM in understanding the test’s purpose, mechanism, strengths, and limitations. It is not interpreted as a strict instruction set, nor are its contents copied verbatim.
To ensure a specific line is included in the LLM’s output, it should be clearly formatted as an instruction. For example, the following syntax works reliably:
INSTRUCTION: Please add the following note at the end of the description:
"NOTE: This is a sample of the data, for the full data results please look in the appendix."
This explicit instruction helps ensure the LLM includes the desired text in the final description.
An example has been added to the notebook demonstrating how to append instructions to the default docstring. In this example, two instructions are provided:
External Release Notes
A new section titled "Add test-specific context using the docstring" has been added to the
add_context_to_llm_descriptions.ipynbnotebook. This section provides guidance on how users can embed explicit instructions within a test's docstring to influence LLM-generated test result descriptions.The enhancement addresses a common issue where non-instructional context in docstrings was ignored by the LLM. Users are now advised to format specific lines as instructions using for example the following syntax for reliable inclusion:
INSTRUCTION: Please add the following note at the end of the description: "NOTE: This is a sample of the data, for the full data results please look in the appendix."